﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.CallPolices;

namespace LeadThing.AbpZeroTemplate.CallPolices.Dtos
{
    /// <summary>
    /// 一键报警表编辑用Dto
    /// </summary>
    [AutoMap(typeof(CallPolice))]
    public class CallPoliceEditDto
    {

        /// <summary>
        ///   主键Id
        /// </summary>
        [DisplayName("主键Id")]
        public long? Id { get; set; }

        /// <summary>
        /// 文件ID
        /// </summary>
        [DisplayName("文件ID")]
        [Required]
        public int FileID { get; set; }

        /// <summary>
        /// X坐标
        /// </summary>
        [DisplayName("X坐标")]
        [Required]
        public string XPoint { get; set; }

        /// <summary>
        /// Y坐标
        /// </summary>
        [DisplayName("Y坐标")]
        [Required]
        public string YPoint { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [DisplayName("地址")]
        public string Address { get; set; }

        /// <summary>
        /// 报警方式
        /// </summary>
        [DisplayName("报警方式")]
        [Required]
        public int CallTypeID { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string Remarks { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [DisplayName("状态")]
        [Required]
        public int Status { get; set; }

        /// <summary>
        /// 处理意见
        /// </summary>
        [DisplayName("处理意见")]
        public string HandleSuggestion { get; set; }

        /// <summary>
        /// 结案意见
        /// </summary>
        [DisplayName("结案意见")]
        public string ClosedSuggestion { get; set; }

        /// <summary>
        /// 乡镇
        /// </summary>
        [DisplayName("乡镇")]
        public int TownID { get; set; }

        /// <summary>
        /// 社区
        /// </summary>
        [DisplayName("社区")]
        public int AreaID { get; set; }

        /// <summary>
        /// 村居
        /// </summary>
        [DisplayName("村居")]
        public int VillageID { get; set; }

        #region 扩展字段

        /// <summary>
        /// 流程节点描述
        /// </summary>
        public string ProcessContent { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>
        public string FileUrl { get; set; }
        public string Name { get; set; }
        public string PhoneNumber { get; set; }

        #endregion

    }
}
